<!-- $Id: goods_search.htm 16790 2009-11-10 08:56:15Z wangleisvn $ -->
<div class="form-div">
  <form action="javascript:searchGoods()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    {if $smarty.get.act neq "trash"}

    <select name="brand_id"><option value="-1">所有品牌</option>    	  	{foreach from=$brand item=info_type}									<option value="{$info_type.brand_id}" >{$info_type.brand_name}									</option>			{/foreach}    </select>

    <!-- 上架 -->
    {/if}
    <!-- 关键字 -->
    {$lang.keyword} <input type="text" name="keyword" size="15" />
    <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>

{literal}
<script language="JavaScript">		function get_brand(){			var brand_type=document.getElementById('brand_type').value;			if(brand_type==1){				document.getElementById('brand_id').style.display="";			}else {				document.getElementById('brand_id').style.display='none';			}					}
    function searchGoods()
    {
{/literal}
        {if $smarty.get.act neq "trash"}
//      listTable.filter['cat_id'] = document.forms['searchForm'].elements['cat_id'].value;
        listTable.filter['brand_id'] = document.forms['searchForm'].elements['brand_id'].value;
//      listTable.filter['technology_type'] = document.forms['searchForm'].elements['technology_type'].value;        //      listTable.filter['brand_type'] = document.forms['searchForm'].elements['brand_type'].value;
          {if $suppliers_exists eq 1}
          listTable.filter['suppliers_id'] = document.forms['searchForm'].elements['suppliers_id'].value;
          {/if}
//      listTable.filter['is_on_sale'] = document.forms['searchForm'].elements['is_on_sale'].value;
        {/if}
{literal}
        listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
        listTable.filter['page'] = 1;

        listTable.loadList();
    }
</script>
{/literal}